<template>
	<div class="app">
		<h1>我是App组件</h1>
		<Child :obj="obj" :checkAgree="checkAgree"/>
	</div>
</template>

<script>
	import Child from './components/Child'

	export default {
		name:'App',
		components:{Child},
		data() {
			return {
				obj:{
					agree:true //是否同意协议
				}
			}
		},
		methods:{
			checkAgree(b){
				this.obj.agree = b
			}
		}
	}
</script>

<style>
	.app{
		background-color: gray;
		padding: 20px;
	}
</style>